/**
 * @projectName study_java
 * @package Factory.abstractFactory
 * @className Factory.abstractFactory.MechineFactory
 */
package Factory.abstractFactory;

import Factory.IAnimal;

/**
 * MechineFactory
 * @description 具体工厂类--分类
 * @author answer_wx
 * @date 2022/6/29 16:31
 * @version 1.0
 */
public class MechineFactory extends AbstractFactory {
    @Override
    public IFood createFood() {
        return new Oil();
    }

    @Override
    public IAnimal createAnimal() {
        return new Robot();
    }

    @Override
    public ITraffic createTraffic() {
        return new Car();
    }

}